Skip to content

Instantly share code, notes, and snippets.

@jesserobbins
jesserobbins / claude-auto-mode-classifier-litellm.md
Last active October 30, 2026 08:50
Capturing and remapping the Claude Code auto-mode safety classifier through LiteLLM

Capturing and remapping the Claude Code auto-mode safety classifier through LiteLLM

Claude Code's auto mode delegates tool-call approval to a model-based safety classifier. Before every Bash command (and other tool calls), Claude Code fires a separate HTTP request to a small model — by default a hard-coded name like claude-haiku-4-5-20251001 — that sees only the user messages and the proposed tool call, then returns an allow/deny judgement. When you route Claude Code through a proxy instead of Anthropic's API, that classifier traffic is easy to lose: it either fails silently (the proxy has no model alias for the classifier name) or gets remapped at the client into the same model as the main session

@riga
riga / README.md
Last active October 30, 2026 08:49
Event ID based splitting of 2024 MC samples into 2024, 2025 and 2026 parts.

Event ID based splitting of 2024 MC samples into 2024, 2025 and 2026 parts (based on correctionlib)

The snippets below demonstrate how to split MC events originally intended for the 2024 data-taking period into orthogonal parts that can be used to simulate the 2024, 2025 and 2026 data-taking periods. The splitting is done event-by-event and only depends on the event ID. The underlying algorithm is deterministic and splits events into three parts with frequencies that reflect the relative recorded luminosities in 2024, 2025 and 2026.

The unbiased behavior is strictly necessary to avoid that algorithms based on event IDs that are used downstream in analyses see a bias towards specific event IDs in any of the three years. For instance, event splitting for ML training / validation purposes, usually done via (e.g.) event % 2 == 0 or alike, should remain statistically unaffected. If there was a bias in the event ID distribution, this would lead to skewed training and validation datasets, which is not desira

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ANADOUNI
ANADOUNI / corredores-REALES_peloton-tactics.json
Created October 30, 2026 08:38
Base de datos con corredores reales para PELOTON TACTICS
[
{
"id": "apex_aero",
"name": "Apex Emirates Cycling",
"shortName": "UAD",
"sponsor": "Emirates Airline & Apex Logistics",
"country": "International",
"flag": "🌐",
"budget": 48000000,
"primaryColor": "#ffffff",
@ciencia
ciencia / cleanupUsersWithNoId.php
Last active October 30, 2026 08:45
cleanupUsersWithNoId.php REL1_35 uncyclopedia fixes
<?php
/**
* Cleanup tables that have valid usernames with no user ID
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@iniandrew
iniandrew / claude-multi-provider.md
Created July 18, 2026 11:56
Setup Claude Code with Multi Provider

Setup Claude With Multi Provider

1. Create a Secure Secrets File

Store your API keys securely in a separate file so they aren't exposed directly in your .bashrc or .zshrc

nano ~/.secrets
@unixfox
unixfox / howto.md
Last active October 30, 2026 08:42
Install Alpine Linux on Oracle Cloud ARM VPS with Ubuntu pre-installed
@flamerix-ai
flamerix-ai / README.md
Last active October 30, 2026 08:34
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Tested on Linux, Claude Code 2.1.257–2.1.312; macOS reported working by others (see Tested versions). The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model just to fill that agent's status line in the agents panel. no-agent-summary.js is a Bun --preload